<el-form ref="form" :model="form" :rules="rules" label-width="100px">
    <el-row :gutter="10">
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="所属部门" prop="ORG_NAME">
<!--                <el-input v-show="!isAdd" v-model="form.ORG_NAME" :disabled="!isAdd" readonly></el-input>-->
<!--                <style>-->
<!--                    .el-scrollbar .el-autocomplete-suggestion{-->
<!--                        width: 300px !important;-->
<!--                    }-->
<!--                </style>-->
                <el-autocomplete
                        popper-class="my-autocomplete"
                        v-model="form.ORG_NAME"
                        placeholder="请选择部门"
                        :fetch-suggestions="querySearch"
                        @select="handleSelect">
                    <!--<i class="el-icon-edit el-input__icon" slot="suffix"-->
                    <!--@click="handleIconClick">-->
                    <!--</i>-->
                    <el-tree
                            :data="treeData"
                            :props="defaultProps"
                            accordion
                            default-expand-all
                            highlight-current="true"
                            @node-click="handleNodeClick"
                            :filter-node-method="filterNode"
                            ref="tree">
                    </el-tree>
                </el-autocomplete>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="姓名" prop="NAME">
                <el-input v-model="form.NAME"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="登录账号" prop="ACCOUNT">
                <el-input v-model="form.ACCOUNT"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="密码" prop="PASSWORD">
                <el-input v-model="form.PASSWORD" @blur="changeP"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="性别" prop="SEX">
                <el-select clearable v-model="form.SEX">
                    <el-option label="男" value="1"></el-option>
                    <el-option label="女" value="2"></el-option>
                    <el-option label="未知" value="3"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="电子邮件">
                <el-input v-model="form.EMAIL"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="联系电话">
                <el-input v-model="form.MOBILE"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="身份证号">
                <el-input v-model="form.IDNO"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="用户类型" prop="TYPE">
                <el-select clearable v-model="form.TYPE" @change="typeChange">
                    <el-option v-for="item in types" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="用户状态" prop="STATUS">
                <el-select clearable v-model="form.STATUS">
                    <el-option v-for="item in statuss" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="ERP人员" prop="BIZ_CODE">
                <el-input v-model="form.BIZ_CODE"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">
            <el-form-item label="ERP部门">
                <el-input v-model="form.ERP_DEPT"></el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">-->
        <!--<el-form-item label="营运中心" prop="DBC">-->
        <!--<el-input v-model="form.DBC"></el-input>-->
        <!--</el-form-item>-->
        <!--</el-col>-->
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="联系地址">
                <el-input v-model="form.ADDRESS"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" :autosize="{minRows:2}" v-model="form.REMARK"></el-input>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">-->
        <!--<el-form-item label="${fns:getLabelByKey('sys','user' ,lang_,'skin_' )}" prop="skin_">-->
        <!--<el-select clearable v-model="form.skin_">-->
        <!--<el-option label="${fns:getLabelByKey('sys','user' ,lang_,'blue' )}" value="blue"></el-option>-->
        <!--<el-option label="${fns:getLabelByKey('sys','user' ,lang_,'gray' )}" value="gray"></el-option>-->
        <!--</el-select>-->
        <!--</el-form-item>-->
        <!--</el-col>-->

        <!--<el-col :xs="12" :sm="12" :md="12" :lg="12" :xl="12">-->
        <!--<el-form-item label="${fns:getLabelByKey('sys','user' ,lang_,'lang_' )}" prop="lang_">-->
        <!--<el-select clearable v-model="form.lang_">-->
        <!--<el-option label="${fns:getLabelByKey('sys','user' ,lang_,'zh_CN' )}" value="zh_CN"></el-option>-->
        <!--<el-option label="${fns:getLabelByKey('sys','user' ,lang_,'zh_TW' )}" value="zh_TW"></el-option>-->
        <!--<el-option label="${fns:getLabelByKey('sys','user' ,lang_,'en' )}" value="en"></el-option>-->
        <!--</el-select>-->
        <!--</el-form-item>-->
        <!--</el-col>-->
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/system/user_edit"], $.noop);
</script>